package service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.StudentDao;

@Service
@Transactional
public class TransactionService {
	@Autowired
	private StudentDao stuDao;
	
	public void save_a() throws Exception{
		stuDao.save_1();
		stuDao.save_2();
		
	}
	
}
